package com.cat.model.web.action.admin;

import com.cat.model.common.util.StoreKey;
import com.cat.model.web.action.base.AdminAction;

public class CommonAction extends AdminAction{

	private static final long serialVersionUID = 8825424468667716005L;

	private String key;
	
	public String flush() {
		StoreKey storeKey = StoreKey.valueOfEx(key);
		if(storeKey != null) {
			storeKey.flushAll(null);
			this.print(key + " flush ok!");
		}else {
			this.print(key + " error!!!");
		}
		return null;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
	
}
